package com.zja.www.entity;

/**
 * @author ja
 * @create 2025/3/22
 * @department 科室信息表
 */
public class Department {

    private int id; //ID
    private String name; //科室名称
    private String description; //科室描述

    //无参构造方法
    public Department() {
    }

    //带参构造方法
    public Department(int id, String name, String description) {
        this.id = id;
        this.name = name;
        this.description = description;
    }


    //getter 和 setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    //toString 方法
    @java.lang.Override
    public java.lang.String toString() {
        return "Department{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}

